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

{{__('Service Items')}}

@php $b=0; @endphp @foreach($all_services as $key => $service)
@foreach($service as $data) @endforeach
{{__('ID')}} {{__('Title')}} {{__('Image')}} {{__('Icon')}} {{__('Category')}} {{__('Status')}} {{__('Date')}} {{__('Action')}}
{{$data->id}} {{$data->title}} @php $img_url = '';@endphp @php $service_section_img = get_attachment_image_by_id($data->image,null,true); $img_url = ''; @endphp @if (!empty($service_section_img))
@php $img_url = $service_section_img['img_url']; @endphp @endif
@if($data->icon_type == 'icon' || $data->icon_type == '') @else {!! render_image_markup_by_attachment_id($data->img_icon) !!} @endif {{get_service_category($data->categories_id)}} {{date_format($data->created_at,'d/M/Y')}} @if($data->status == 'draft') {{__('Draft')}} @else {{__('Publish')}} @endif
@csrf
@php $b++; @endphp @endforeach
@endsection @section('script') @endsection