@extends('admin.layouts.app') @section('title', 'Order') @section('content')

Orders

@if(!empty($user))

Orders listing: {{ucfirst($user->name)}}

@else

All Orders listing

@endif
@if (Session::has('message'))
{{ Session::get('message') }}
@endif @php $i = 0; @endphp @foreach($data as $datas) @php $i++; @endphp @endforeach
ID Order ID User Date Status Coupon Payment Type Total Order Status Action
{{$i+1}} #{{$datas->order_id}} {{$datas->first_name}} {{$datas->last_name}} {{\Carbon\Carbon::parse($datas->created_at)->format('d-m-Y')}} @if($datas->status=='1') Activated @else De-Activated @endif @if($datas->coupon_amount != '') {{$datas->coupon_title}} : KD {{$datas->coupon_amount}} @else - @endif {{$datas->payment_type}} KD {{$datas->checkout_total}} {{$datas->order_status}} view
ID Order ID Date Status Coupon Payment Type Total Order Status Action
@endsection