@php $cardLogo = \App\Models\Utility::get_file('card_logo/'); @endphp @extends('layouts.admin') @section('page-title') {{ __('Business') }} @endsection @section('title') {{ __('Business') }} @endsection @section('breadcrumb') @endsection @section('action-btn') @can('create business')
@endcan @endsection @section('content')
@foreach ($business as $val) @php $now = $val->created_at; $date = $now->format('Y-m-d'); $time = $now->format('H:i:s'); @endphp @endforeach
{{ __('#') }} {{ __('Business Logo') }} {{ __('Businesses') }} {{ __('Status') }} {{ __('Generate Date') }} {{ __('Operations') }}
{{ $loop->index + 1 }}
{{ ucFirst($val->title) }} {{ ucFirst($val->status) }} {{ $val->created_at }} {{ $val->created_at }} @if ($val->status != 'lock')
{!! Form::open([ 'method' => 'POST', 'route' => ['business.duplicate', $val->id], 'id' => 'duplicate-form-' . $val->id, ]) !!} {!! Form::close() !!}
{{-- @can('view analytics business')--}} {{--
--}} {{-- --}} {{--
--}} {{-- @endcan--}} {{-- @can('calendar appointment')--}} {{--
--}} {{-- --}} {{--
--}} {{-- @endcan--}} {{-- @can('manage contact')--}} {{--
--}} {{-- --}} {{--
--}} {{-- @endcan--}} {{--
--}} {{-- {{ Form::open(['route' => ['business.status', $val->id], 'class' => 'm-0']) }}--}} {{-- @method('POST')--}} {{-- --}} {{-- {!! Form::close() !!}--}} {{--
--}} @can('delete business')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['business.destroy', $val->id], 'id' => 'delete-form-' . $val->id, ]) !!} {!! Form::close() !!} @else @endcan {{-- @else
{{ Form::open(['route' => ['business.status', $val->id], 'class' => 'm-0']) }} @method('POST') {!! Form::close() !!}
--}} @endif
@endsection @push('custom-scripts') @endpush