@extends('backend.admin-master') @section('style') @endsection @section('site-title') {{__('Case Study')}} @endsection @section('content')

{{__('Case Study Items')}}

@php $b=0; @endphp @foreach($all_works as $key => $work)
@foreach($work as $data) @endforeach
{{__('ID')}} {{__('Title')}} {{__('Status')}} {{__('Image')}} {{__('Category')}} {{__('Date')}} {{__('Action')}}
{{$data->id}} {{$data->title}} @if($data->status == 'draft') {{__('Draft')}} @else {{__('Publish')}} @endif @php $img_url = '';@endphp @php $work_section_img = get_attachment_image_by_id($data->image,null,true); $img_url = ''; @endphp @if (!empty($work_section_img))
@php $img_url = $work_section_img['img_url']; @endphp @endif
{!! get_work_category_by_id($data->id,'string') !!} {{date_format($data->created_at,'d M Y')}}
@csrf
@php $b++; @endphp @endforeach
@endsection @section('script') @endsection