@extends('administrator.layout') @section('admintitle', 'Order List') @section('content')
@if ($errors->any()) @endif
@if(session('success')) @endif @if (session()->has('error')) @endif

Order List

@csrf
@if(isset($searchData)) @foreach ($searchData as $item) @endforeach @endif @if(isset($products)) @foreach ($products as $item) @endforeach @endif
Sno. {{ __('text.name') }} {{ __('text.phone') }} {{ __('text.price') }} {{ __('text.sub_total') }} {{ __('text.order_date') }} {{ __('text.status') }} {{ __('text.action') }}
{{ $item->order_id }} {{ $item->first_name }} {{ $item->last_name }} {{ $item->telephone }} {{ $symbol }}{{ $item->price }} {{ $symbol }}{{ $item->price * $item->quantity }} {{ $item->date_added }} @if($item->status == 0) {{ __('text.pending') }} @elseif($item->status == 1) {{ __('text.complete') }} @endif @if($item->status == 0)
@csrf
@endif
{{ $item->order_id }} {{ $item->first_name }} {{ $item->last_name }} {{ $item->telephone }} {{ $symbol }}{{ $item->price }} {{ $symbol }}{{ $item->price * $item->quantity }} {{ $item->date_added }} @if($item->status == 0) {{ __('text.pending') }} @elseif($item->status == 1) {{ __('text.complete') }} @endif @if($item->status == 0)
@csrf
@endif
@if(isset($searchData)) {{ $searchData->appends(['name' => $name ?? '', 'date_added' => $date ?? '', 'order_id' => $order_id ?? ''])->links() }} @elseif(isset($products)) {{ $products->links() }} @endif
@endsection