@extends('screenwriter.screenwriter_layout.app') @section('content')
@if(!$scripts->isEmpty())
@foreach ($scripts as $script)
Profile Picture
{{ucwords(preg_replace('/_/i',' ',$script->publish_status))}}
{{$script->title}}.pdf @if($script->publish_status == 'draft')
@csrf
@else @endif

{{$script->updated_at->diffForHumans()}}

@if($script->publish_status == 'accepted') @endif
@endforeach
@else
No Script Yet
@endif
@if(@session('delete_status') == 'success')
Script Deleted
@endif
@endsection