@if ($message = Session::get('success'))
@if($drafts->hasPages())
{{ $message }}
@endif
Filters & Search
Drafts List {{ $drafts->total() }} total
| Status | Published Trademark | Country | Class | Filing # | Filing Date | Publication Date | Client Mark | Client Class | Client Country | Reg. No. | Client Name | Assigned To | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @php $statusColors = [ 'created' => 'primary', 'assigned' => 'info', 'rejected' => 'danger', 'sent to client' => 'warning', 'client responded' => 'success', 'sent to ligitation' => 'dark' ]; $color = $statusColors[$draft->status] ?? 'secondary'; @endphp {{ ucfirst($draft->status) }} |
@if($draft->similar_img_paths)
{{ $draft->Applicant }}
|
@php $country = DB::table('countries')->where('countries.id','=',$draft->country_id_similar)->select('country_name','code')->first(); @endphp
@if($country) {{ $country->country_name }} @else N/A @endif | {{ $draft->similar_class }} | {{ $draft->similar_filing_no }} |
{{ $draft->similar_filing_date ? \Carbon\Carbon::parse($draft->similar_filing_date)->format('M d, Y') : 'N/A' }} | {{ $draft->similar_publication_date ? \Carbon\Carbon::parse($draft->similar_publication_date)->format('M d, Y') : 'N/A' }} |
@if($draft->img_paths)
@php $applicant = DB::table('applicants')->where('applicants.id','=',$draft->applicant_id)->select('name')->first(); @endphp
@if($applicant && $applicant->name)
{{ $applicant->name }}
@else
N/A
@endif
|
{{ $draft->class }} | @php $clientCountry = DB::table('countries')->where('countries.id','=',$draft->country_id)->select('country_name','code')->first(); @endphp@if($clientCountry) {{ $clientCountry->country_name }} @else N/A @endif | {{ $draft->register_no }} |
@php $client = DB::table('clients')->where('clients.id','=',$draft->client_id)->select('client_name')->first(); @endphp
@if($client && $client->client_name) {{ $client->client_name }} @else N/A @endif | @php $user = DB::table('users')->where('users.id','=',$draft->assigned_to)->select('name')->first(); @endphp@if($user && $user->name) {{ $user->name }} @else N/A @endif | |
{!! $drafts->appends(request()->query())->links() !!}
@endif