@extends('backend.admin-master') @section('style') @endsection @section('site-title') {{__('All Works')}} @endsection @section('content')
@include('backend/partials/message') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{$error}}
  • @endforeach
@endif

{{__('All Works Items')}}

@php $b=0; @endphp @foreach($all_works as $key => $work)
@foreach($work as $data) @endforeach
{{__('ID')}} {{__('Title')}} {{__('Image')}} {{__('Category')}} {{__('Status')}} {{__('Action')}}
{{$data->id}} {{$data->title}} {!! render_attachment_preview($data->image,'',true) !!} {!! get_work_category_by_id($data->id,'string') !!} @if($data->status == 'draft' || empty($data->status))
{{__('Draft')}}
@elseif($data->status == 'publish')
{{ucwords($data->status)}}
@endif
@csrf
@php $b++; @endphp @endforeach
@endsection @section('script') @endsection