@extends('layouts.app') @section('header')
Customer details
@can('create_transaction', auth()->user()) @endcan
@endsection @section('content')
@if(!isset($customer->picture)) @else @endif @if($customer->has_id) @foreach($customer->idDocuments as $idDocument) @endforeach @else @endif
Name {{$customer->name}}
Email {{$customer->email}}
Phone {{$customer->phone}}
Occupation {{$customer->occupation}}
ID DOCUMENTS
Number: {{$idDocument->number}} {{$idDocument->type}}
@csrf @method('DELETE') @can('delete_customer', auth()->user()) @endcan
Please upload an ID document Upload scan
Address {{$customer->address}}
Comment {{$customer->comment}}
Created on {{date_format(date_create($customer->created_at),'D dS M Y h:i:sa')}}
Created by {{$customer->user->name}}
@csrf
@can('edit_customer', auth()->user()) Edit @endcan @can('delete_customer', auth()->user()) @endcan
@csrf @foreach($customer->transfers as $transfer) @endforeach
Date Branch Type Provider Amount
{{date_format(date_create($transfer->date.' '.$transfer->time),'D dS M Y h:i:sa')}} {{$transfer->branch->name}} {{$transfer->type}} {{$transfer->transferProvider->name??'Not Set'}} {{number_format($transfer->amount,2)}} view
@csrf Generate Excel @foreach($customer->forexes as $forex) @endforeach
Date Branch From To
{{date_format(date_create($forex->date.' '.$forex->time),'D dS M Y h:i:sa')}} {{$forex->branch->name}} {{$forex->fromCurrency->code.'. '.number_format($forex->from_amount,2)}} {{$forex->toCurrency->code.'. '.number_format($forex->to_amount,2)}} view
@endsection