@vite('resources/css/app.css') @include('sidebar.users_sidebar')

Contents

- To be Created
- Under 5 days remaining until the deadline.
- Completed.
@include('SMM.SMMAdmin.addcontentmodal')
@if ($errors->any())
{{ $errors->first('error') }}
@endif
@foreach ($contents as $content) @php $endDate = \Carbon\Carbon::parse($content->end_date); $fiveDaysFromNow = now()->addDays(5); $rowClass1 = ''; $rowClass = ''; $rowClass2 = ''; if ($content->graphic_status !== 'Completed' && $content->content_status !== 'Completed') { if ($endDate->isPast()) { $rowClass2 = 'bg-white'; } elseif ($endDate->lte($fiveDaysFromNow)) { $rowClass2 = 'bg-red-400'; } } if ($content->graphic_status === 'To be created') { $rowClass1 = 'bg-blue-300'; } if ($content->content_status === 'To be created') { $rowClass = 'bg-blue-300'; } if ($content->graphic_status === 'Completed') { $rowClass1 = 'bg-green-300'; } if ($content->content_status === 'Completed') { $rowClass = 'bg-green-300'; } @endphp @endforeach
Client Name Client Status Graphic Status Employees File Start Date Posting Date Upload Edit delete
{{ $content->client_name }}
{{ $content->content_status }}
{{ $content->graphic_status }}
    @foreach (explode(',', $content->employee_info) as $employee) @php $employeeParts = explode('-', trim($employee)); $userId = trim($employeeParts[0]); $employeeType = trim($employeeParts[1]); $employeeName = trim($employeeParts[2]); @endphp
  • {{ $employeeType }} - {{ $employeeName }}
  • @endforeach
@if ($content->file !== null) {{ $content->file }} @else No file uploaded yet. @endif {{ \Carbon\Carbon::parse($content->start_date)->format('F j, Y') }} {{ \Carbon\Carbon::parse($content->end_date)->format('F j, Y') }} @if ($endDate->isPast() && $content->graphic_status !== 'Completed' && $content->content_status !== 'Completed')
The End Date has Already Passed.
@elseif ( $endDate->lte($fiveDaysFromNow) && $content->graphic_status !== 'Completed' && $content->content_status !== 'Completed')
The Deadline is Rapidly Approaching.
@endif
@csrf