@extends('layouts.pharmacist') @section('title') Order Details @endsection @section('body')

Orders

Monitor Orders for your Stock
Order made by: {{ $order->user->fullName() }}
Location of User: {{ $user->fullAddress() }}
Date of Order: {{ $order->created_at->toDayDateTimeString() }}
Order Price: {{ config()->get('sitedata.currency') }} {{ $order->total_price }}
Order Status: {{ $order->getStatus() }}
Items Ordered
@forelse ($order->orderitems as $item) @empty @endforelse
# Item Quantity Unit Price ({{config()->get('sitedata.currency') }}) Total Price ({{config()->get('sitedata.currency') }})
{{ $loop->iteration }} {{ $item->name }} {{ $item->quantity }} {{ $item->unit_price }} {{ $item->unit_price * $item->quantity }}
2 Septrin 2 80
Total 200
@if($order->getStatus() === "pending")
@endif
@include('partials.copyrights') @endsection