@extends('layouts.admin') @section('content') @php $months=[ ''=>'None', 1=>'January', 2=>'February', 3=>'March', 4=>'April', 5=>'May', 6=>'Jun', 7=>'July', 8=>'August', 9=>'September', 10=>'October', 11=>'November', 12=>'December', ]; @endphp
Account details of {{$ppp->name?$ppp->name:""}}
@if (session()->has('message'))
{!! session('message') !!}
@endif
@if ($ppp->created_by) Created by : {{$ppp->user->first_name}} {{$ppp->user->last_name}} on {{$ppp->created_at->format('d/m/Y')}} at {{$ppp->created_at->format('h:i:s A')}} @endif @if ($ppp->modified_by)
Last updated by : {{$ppp->modified->first_name}} {{$ppp->modified->last_name}} on {{$ppp->updated_at->format('d/m/Y')}} at {{$ppp->updated_at->format('h:i:s A')}} @endif
@php if(isset($_REQUEST['page'])){ $page_id=$_REQUEST['page']; }else{ $page_id=1; } @endphp
Username {{$ppp->name}} @can('modify-secret') Change @endcan
Password {{$ppp->password}} @can('modify-secret') Change @endcan
Package {{$ppp->profile}} @can('modify-secret') Change @endcan
মাসিক বিল {{$ppp->bill_amount}} @can('modify-secret') Change @endcan
বিল তৈরির তারিখ {{$ppp->created_at->format('d-M-Y')}} @can('modify-secret') Change @endcan
পরিশোধের শেষ তারিখ {{$ppp->last_pay_day}}th @can('modify-secret') Change @endcan
Connection status @if ($ppp->disabled=='false') ON @else OFF @endif @can('modify-secret') @if ($ppp->disabled=='false') সংযোগটি বন্ধ হোক @else সংযোগটি চালু হোক @endif @endcan
গ্রাহকের তথ্য {{$ppp->full_name}}
{{$ppp->phone}}
{!! $ppp->comments !!}
Change
Account Balance @if ($account_balance<0) Tk. {{number_format($account_balance,2)}} @else Tk. {{number_format($account_balance,2)}} @endif Account Statement
Latest Invoice
গ্রাহকের নিকট পাওনা টাকার বিবরণ
@if (session()->has('message'))
{!! session('message') !!}
@endif
@foreach ($invoices as $invoice) @endforeach
Date/Time Particulars Amount Last Payment Date
{{$invoice->created_at->format('M d, Y')}}
{{$invoice->created_at->format('h:i:s A')}}
@php $toDay=$invoice->created_at->format('d')-1; $toMonth=$invoice->month+1; @endphp @if ($invoice->month>0) Bill period :
{{$months[$invoice->month]}}
{{$invoice->created_at->format('d')}}-{{$months[$invoice->month]}}-{{$invoice->year?$invoice->year:$invoice->created_at->format('Y')}} To @if($invoice->month<12) {{$toDay}}-{{$months[$invoice->month+1]}}-{{$invoice->year?$invoice->year:$invoice->created_at->format('Y')}} @else {{$toDay}}-{{$months[1]}}-{{$invoice->year?$invoice->year+1:$invoice->created_at->format('Y')}} @endif
@endif {{$invoice->particulars}}
{{$invoice->amount}} {{$invoice->last_pay_date->format('M d, Y')}} @if (!$invoice->isPaid) @can('manager') Edit @endcan Pay @if ($invoice->created_by==Auth::user()->id)
@csrf {{ method_field('DELETE') }}
@else @can('delete-invoice')
@csrf {{ method_field('DELETE') }}
@endcan @endif @else Paid @can('admin') {{-- special permission to admin for editing invoice --}} Edit @endcan @endif
Payment History
গ্রাহকের দেয়া / গ্রাহক থেকে সংগৃহীত টাকার বিবরণ
@foreach ($payments as $payment) @endforeach
Date/Time Amount Received By
{{$payment->created_at->format('M d, Y')}}
{{$payment->created_at->format('h:i:s A')}}
{{$payment->amount}} {{$payment->user->first_name}} {{$payment->user->last_name}} @can('admin')
@csrf {{ method_field('DELETE') }}
@endcan
@endsection