@extends('admin.layout.master') @section('content')
{{-- Add class .table-bordered --}}
| S.no | OrderId | Saloon | Discount | SubTotal | Order Date | Order Status | Transaction Id | Payment Status | Services | Billed To |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | Order-{{ $bookings->id }} | {{ ucwords($bookings->salon->name) }} {{--({{ $bookings->saloon_id }})--}} | ₹ {{ $bookings->discount ?? 0 }} | ₹ {{ $bookings->total_price ?? 0 }} | {{ $bookings->created_at }} | @if ($bookings->order_status == 'completed') Completed @elseif ($bookings->order_status == 'pending') Processing @elseif ($bookings->order_status == 'cancelled') Canceled @else {{ $bookings->status }} @endif | {{ $bookings->transaction_id }} | @if ($bookings->payment_status == "success") Success @else {{ $bookings->payment_status }} @endif |
@php $i = 1 @endphp
@foreach ($bookings->BookedServices as $key => $service)
{{ $i++ }} . {{ ucwords($service->Service->name) }} ({{ $service->service_id }}) @endforeach |
{{ ucwords($bookings->user->name) }} |