@extends('layouts.app') @section('title', __('app.'.$section)) @section('content')
{{ __('app.manage_master_data') }}
| # | {{ __('app.name') }} | @if($section==='models'){{ __('app.brand') }} | @endif @if(in_array($section,['suppliers','customers'])){{ __('app.phone') }} | {{ __('app.country') }} | {{ __('app.balance') }} | @endif @if($section==='customers'){{ __('app.tazkira') }} | @endif @if($section==='users'){{ __('app.email') }} | {{ __('app.role') }} | {{ __('app.employee') }} | @endif @if($section==='roles'){{ __('app.slug') }} | {{ __('app.permissions') }} | @endif @if($section==='employees'){{ __('app.phone') }} | {{ __('app.position') }} | {{ __('app.salary') }} | {{ __('app.user') }} | @endif @if($section==='currencies'){{ __('app.currency_code') }} | {{ __('app.symbol') }} | {{ __('app.exchange_rate') }} | @endif @if($section==='countries'){{ __('app.code') }} | {{ __('app.phone_code') }} | @endif{{ __('app.status') }} | {{ __('app.action') }} |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $row->id }} | {{ $row->name }} | @if($section==='models'){{ $row->brand->name ?? '-' }} | @endif @if(in_array($section,['suppliers','customers'])){{ $row->phone }} | {{ $row->country ?? '-' }} | {{ number_format($row->opening_balance ?? 0,2) }} | @endif @if($section==='customers'){{ $row->tazkira ?? '-' }} @if($row->tazkira_scan){{ __('app.file') }}@endif | @endif @if($section==='users'){{ $row->email }} | {{ $row->role }} | {{ $row->employee->name ?? '-' }} | @endif @if($section==='roles'){{ $row->slug }} | {{ implode(', ', array_slice($row->permissions ?? [], 0, 6)) }}{{ count($row->permissions ?? []) > 6 ? '...' : '' }} | @endif @if($section==='employees'){{ $row->phone }} | {{ $row->position }} | {{ number_format($row->salary ?? 0,2) }} | {{ $row->user->email ?? '-' }} | @endif @if($section==='currencies'){{ $row->code }} | {{ $row->symbol }} | {{ $row->exchange_rate }} | @endif @if($section==='countries'){{ $row->code }} | {{ $row->phone_code }} | @endif{{ __('app.'.($row->status ?? 'active')) }} | {{ __('app.edit') }} |
| {{ __('app.no_records') }} | ||||||||||||||||||||||