@extends('panel.layouts.master') @section('content')
@csrf @method('PUT')
نام کامل
ضروری
نام کامل و رسمی خود را همانطور که در شناسنامه آورده شده است وارد کنید
@php $ins = [ 1 => 'اول', 2 => 'دوم', 3 => 'سوم' ]; @endphp @if($phone?->user?->installments)
@if($phone->user->installments()->count() > 0) اقساط پرداخت شده : @foreach($phone->user->installments()->whereStatus('success')->get() as $item)

قسط {{ $ins[$loop->iteration] }} : {{ number_format($item->amount) }} ریال

@endforeach @else @if($lastPayment = $phone->user->payments()->where(['status' => 'success', 'pay_type' => 'cash'])->first()) مبلغ پرداخت شده : {{ number_format($lastPayment->amount) }} ریال @endif @endif
@endif
@php $history = $phone->history()->latest()->whereIn('change_to',['tamas_mojadad','mashverat'])->first() @endphp
لغو
@endsection @section('script') @endsection