@php $users = \Auth::user(); $businesses = App\Models\Business::allBusiness(); $currantBusiness = $users->currentBusiness(); $bussiness_id = $users->current_business; @endphp @extends('layouts.admin') @section('content') @section('page-title') {{ __('Appointments') }} @endsection @section('breadcrumb') @endsection @section('title') {{ __('Appointments') }} @endsection @push('css-page') @endpush @section('content')
{{-- //business Display Start --}} {{-- //business Display End --}} {{ Form::open(['route' => ['appointments.index'], 'method' => 'get', 'id' => 'appointment_filter', 'class' => 'appointment_filter_row']) }}
{{ Form::label('start_date', __('Start Date'), ['class' => 'form-label']) }} {{ Form::date('start_date', isset($_GET['start_date']) ? $_GET['start_date'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Date']) }}
{{ Form::label('end_date', __('End Date'), ['class' => 'form-label']) }} {{ Form::date('end_date', isset($_GET['end_date']) ? $_GET['end_date'] : '', ['class' => 'form-control ', 'placeholder' => 'Select Date']) }}
{{ Form::close() }}
@foreach ($appointment_deatails as $val) @if ($val->status == 'pending') @else @endif
@endforeach
{{ __('Date') }} {{ __('Time') }} {{ __('Business Name') }} {{ __('Name') }} {{ __('Email') }} {{ __('Phone') }} {{ __('Status') }} {{ __('Action') }}
{{ $val->date }} {{ $val->time }} {{ $val->business_name }} {{ $val->name }} {{ $val->email }} {{ $val->phone }}{{ ucFirst($val->status) }} {{ ucFirst($val->status) }} @can('edit appointment') @endcan @can('delete appointment')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['appointments.destroy', $val->id], 'id' => 'delete-form-' . $val->id, ]) !!} {!! Form::close() !!} @endcan
{{ __('Calendar') }}
@if (isset($settings['Google_Calendar']) && $settings['Google_Calendar'] == 'on') @endif

{{ __('Appointments') }}

{{ __('This data is only for current month ') }}
    @foreach ($arrayJson as $appointment) @php $month = date('m', strtotime($appointment['start'])); @endphp @if ($month == date('m'))
  • {{ $appointment['title'] }}
    {{ $appointment['start'] }}
  • @endif @endforeach
@endsection @push('custom-scripts') @endpush