@extends('admin.layouts.admin') @section('content')
@if(Session::has('message'))

{{ Session::get('message') }}

@endif
@foreach ($data as $item) @endforeach
Appointment ID Amount Payment Type Customer Staff Service Status Created On Action
{{ $item->appointment_id }} ${{ $item->amount }} @switch($item->payment_type) @case('C') CASH @break @case('S') STRIPE @break @default @endswitch {{ $item->appointment->user->first_name }} {{ $item->appointment->user->last_name }} {{ $item->appointment->staff->user->first_name }} {{ $item->appointment->staff->user->last_name }} {{ $item->appointment->service->name }} @if ($item->active == '1') Active @else Active @endif {{ $item->created_at }}
@endsection