@extends('main') @section('h_title', 'Drive Package Orders') @section('package_main', 'active') @section('package_main_expand', 'true') @section('package_show_main', 'show') @section('drive_main', 'active') @section('drive_show', 'show') @push('css_cdn') @endpush @section('body')
Drive Package Orders
@foreach($drives as $data) @endforeach
# Name Package Name Price Discount User Pay Drive/
Regular
Number Status Reason Order Date Action
{{ $loop->iteration }} {{ $data->user == null ? 'User Not found':$data->user->name }} {{ $data->packageInfo == null ? 'Drive Not found':$data->packageInfo->name }} {{ $data->price }} BDT {{ $data->discount == 0 ? 'N/A' : $data->discount .__(' BDT')}} {{ $data->pay }} BDT {{ $data->type }} {{ $data->number }} {{ $data->reason == null ? 'N/A' : $data->reason}} {{ \Carbon\Carbon::make($data->created_at)->format('D, d M Y') }} @if($data->status === 'pending') Delete @elseif($data->status === 'accepted' || $data->status === 'cancelled') Delete @endif
@endsection @push('js_cdn') @endpush @push('js') @endpush