@extends('dashboard.layout.layout') @section('content')
{!! trans('dashboard.branch.branches') !!}
{!! $branches->links() !!}
@foreach ($branches as $branch) @endforeach
# {!! trans('dashboard.general.name') !!} {!! trans('dashboard.country.country') !!} {!! trans('dashboard.city.city') !!} {!! trans('dashboard.order.order_count') !!} {!! trans('dashboard.product.product_count') !!} {!! trans('dashboard.general.added_date') !!} {!! trans('dashboard.general.control') !!}
{{ $loop->iteration }} {{ $branch->name }} {{ optional(@$branch->city->country)->name ?? '---' }} {{ optional($branch->city)->name ?? '---' }} {{ $branch->orders->count() }} {{ $branch->products->count() }}
{{ $branch->created_at->format("Y-m-d") }}
{!! $branches->links() !!}
@include('dashboard.layout.delete_modal') @endsection @section('vendor_styles') @endsection @section('page_styles') @endsection @include('dashboard.branch.scripts')