@include('teamwatch::layouts.headerscript')
AdminLTELogo
@include('teamwatch::layouts.navbar') @include('teamwatch::layouts.sidebar')

Drafts Management

@if ($message = Session::get('success')) @endif

Filters & Search

Clear

Drafts List {{ $drafts->total() }} total

@forelse ($drafts as $draft) @php $country = DB::table('countries')->where('countries.id','=',$draft->country_id_similar)->select('country_name','code')->first(); @endphp @php $clientCountry = DB::table('countries')->where('countries.id','=',$draft->country_id)->select('country_name','code')->first(); @endphp @php $client = DB::table('clients')->where('clients.id','=',$draft->client_id)->select('client_name')->first(); @endphp @php $user = DB::table('users')->where('users.id','=',$draft->assigned_to)->select('name')->first(); @endphp @empty @endforelse
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) Similar Logo @else
@endif
{{ $draft->Applicant }}
@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) Client Logo @else
@endif
@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 }} @if($clientCountry) {{ $clientCountry->country_name }} @else N/A @endif {{ $draft->register_no }} @if($client && $client->client_name) {{ $client->client_name }} @else N/A @endif @if($user && $user->name) {{ $user->name }} @else N/A @endif
No drafts found

Try adjusting your filters or create a new draft.

Create New Draft
@if($drafts->hasPages())
{!! $drafts->appends(request()->query())->links() !!}
@endif
@include('teamwatch::layouts.footer')
@include('teamwatch::layouts.footerscript')