@extends('admin.layout') @section('title',__('Merchants')) @section('css') @endsection @section('breadcrump')

{{ __('Merchants') }}

@endsection @section('content')

{{ __('Merchants table') }}

@foreach($merchants as $merchant) @endforeach
# {{ __('Name') }} {{ __('Phone') }} {{ __('State') }} {{ __('Change status') }} {{ __('Status') }} {{__('Total balance')}} {{__('Confirmed balance')}} {{__('Paid balance')}} {{ __('Created at') }} {{ __('Action') }}
{{$merchant->id}} {{$merchant->name}} {{$merchant['phone']}} @if(isset($merchant['state'])) {{$merchant['state']['name']}} @endif @if($merchant['active']) {{__('Active')}} @else {{__('Unactive')}} @endif {{$merchant->total_balance}} {{$merchant->confirmed_balance}} {{$merchant->paid_balance}} {{date('d-m-Y',strtotime($merchant->created_at))}}
@csrf @method('delete')
@include('admin.pages.merchants._form') @endsection @section('scripts') @include('admin.pages.merchants.merchants_index_js') @endsection